package com.umerclass.utils;

import android.os.Environment;
import com.umerclass.utils.file.FileUtils;
import java.io.File;

/**
 * [description about this class]
 * 整个apk静态变量的设置
 * @author jack
 */

public class Constants {

    // APP_ID 替换为你的应用从官方网站申请到的合法appId
    public static final String APP_ID = "wx78d954772f8b3327";
    public static final String SECRET = "wx78d954772f8b3327";

    public static final String DEAULT_NOTIFICATION = "notification";

    //=============================缓存数据=================================
    public static int CACHE_SIZE = 10 * 1024 * 1024;//10MB
    //=============================文件操作相关==============================

    /**
     * 整个应用程序文件夹创建的根目录位置(直接暴露在手机目录下,用户很容易可见)
     */
    public static String ROOT_FILE_PATH = Environment.getExternalStorageDirectory().getPath() + File.separator +
            ApkUtils.getInstance().getApkName();
    /**
     * 整个应用程序文件夹创建的缓存根目录位置(直接暴露在手机目录下,用户不易可见)
     * /storage/emulated/0/Android/data/包名/cache/包名
     */
    public static String CACHE_ROOT_FILE_PATH = ApkUtils.getInstance().getDiskCacheDirPath() + File.separator +
            ApkUtils.getInstance().getApkPackageName();

    //图片的根目录
    public static String DEFAULT_PHOTO_IMAGE_DIR = FileUtils.getInstance().getRootDirectory() + File.separator + "photo_image";

    //=============================网络相关==============================
    /***
     * HTTP头部写的token的值
     */
    public static final String TOKEN = "X-Token";
    private static final int readTimeOut = 30;//数据读取超时时间，默认为30s
    private static final int writeTimeOut = 30; //写超时时间，默认为15s
    private static final int connectTimeOut = 25; //连接超时时间，默认为25s

    //=============================项目配置=================================
    /***
     * http请求中添加的header key
     */
    public static final String SESSION_ID = "sessionId";
    /**
     * HTTP header中的cookie值KEY
     */
    public static final String COOKIE = "cookie";
    /***
     * http请求中添加的header key
     */
    public static final String USER_AGENT_KEY = "user-agent";
    /***
     * HTTP头部写的user_agent的值
     */
    public static final String USER_AGENT_VALUE = "UA_HKWY";
    /**
     * HTTP header中的cookie值VALUE的前缀
     */
    public static final String SID = "sid=";
    /***
     * http请求中添加的header key
     */
    public static final String USER_ID = "userId";

    /***
     * 字符串使用到的分隔符
     */
    public static final String SPLIT = "~";

    /**
     * 框架基本常量设置
     */
    public static final int NO_NET_NUMBER = -1000;
    public static final int DEFAULT_NUMBER = 10;
    //public static String IP_PORT_DEFAULT = "https://www.iumer.vip";

   /* public static String BASE_API_URL = "https://www.iumer.vip/ymkj/webService";
    public static String IP_PORT_DEFAULT_PICTURE = "https://www.iumer.vip";
    public static String BASE_API_COMMON_URL = "https://www.iumer.vip/ymkj/webService/common";
    public static String BASE_API_BUSINESS_URL = "https://www.iumer.vip/ymkj/webService/business";
    public static String BASE_API_CUSTOMER_URL = "https://www.iumer.vip/ymkj/webService/customer";*/


    public static String BASE_API_URL = "https://192.168.0.32:8080/ymkj/webService";
    public static String BASE_API_COMMON_URL = "https://192.168.0.32:8080/ymkj/webService/common";
    public static String BASE_API_BUSINESS_URL = "https://192.168.0.32:8080/ymkj/webService/business";
    public static String BASE_API_CUSTOMER_URL = "https://192.168.0.32:8080/ymkj/webService/customer";
    public static String IP_PORT_DEFAULT_PICTURE = "http://192.168.0.32:8081";

    public static final int PERMISSIONS_REQUEST_STORAGE = 1;

    /**
     * 用户中心
     */
    public static String editUserInfo = BASE_API_URL + "/biz/user/editUserInfo";
    public static String USER_REGISTER = BASE_API_URL + "/biz/user/register";
    public static String selectUserInfo = BASE_API_URL + "/biz/user/selectUserInfo";
    public static String USER_LOGIN = BASE_API_URL + "/biz/user/login";
    public static String USER_UPDATE_PASSWORD = BASE_API_URL + "/biz/user/updatePassword";
    public static String customerMapList = BASE_API_URL + "/biz/customer/customerMapList";


    /**
     * 华钛按摩
     */
    public static String myTeamGroup = BASE_API_BUSINESS_URL + "/biz/device/myTeamGroup";
    public static String myTeamGroupList = BASE_API_BUSINESS_URL + "/biz/device/myTeamGroupList";
    public static String myDeviceList = BASE_API_BUSINESS_URL + "/biz/device/myDeviceList";
    public static String myPerformanceList = BASE_API_BUSINESS_URL + "/biz/account/myPerformanceList";
    public static String authPhone = BASE_API_COMMON_URL + "/authPhone";
    public static String registerUser = BASE_API_BUSINESS_URL + "/biz/user/registerUser";
    public static String userLogin = BASE_API_BUSINESS_URL + "/biz/user/userLogin";
    public static String myPerformance = BASE_API_BUSINESS_URL + "/biz/account/myPerformance";
    public static String myBrokerageList = BASE_API_BUSINESS_URL + "/biz/account/myBrokerageList";
    public static String myPayPassword = BASE_API_BUSINESS_URL + "/biz/account/myPayPassword";
    public static String bankList = BASE_API_BUSINESS_URL + "/biz/account/bankList";
    public static String addbank = BASE_API_BUSINESS_URL + "/biz/account/addbank";
    public static String submitPrice = BASE_API_BUSINESS_URL + "/biz/account/submitPrice";
    public static String brokerageSubmitPrice = BASE_API_BUSINESS_URL + "/biz/account/brokerageSubmitPrice";
    public static String updatePassword = BASE_API_BUSINESS_URL + "/biz/user/updatePassword";

    /**
     * 悬浮窗权限requestCode
     */
    public static final int REQUEST_CODE_FLOAT_WINDOW = 0x123;
    public static final int REQUEST_CODE_LOGIN = 10001;
    //在线音乐
    public static final String FILENAME_MP3 = ".mp3";
    public static final String FILENAME_LRC = ".lrc";
}